package com.cnfangmao.masterdata.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 字段枚举类型
 * </p>
 *
 * @author chenxd
 * @since 2020-04-14
 */
@TableName("t_enum_type")
public class EnumType implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 枚举类型Id
     */
    @ApiModelProperty("枚举类型Id")
    @TableId(value = "type_id")
    private String typeId;
    
    /**
     * 枚举类型英文名称
     */
    @ApiModelProperty("枚举类型英文名称")
    @TableField(value = "type_code")
    private String typeCode;
    
    /**
     * 枚举类型中文名称
     */
    @ApiModelProperty("枚举类型中文名称")
    @TableField(value = "type_name")
    private String typeName;
    
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @TableField(value = "created_on")
    private Date createdOn;
    
    /**
     * 创建人
     */
    @ApiModelProperty("创建人")
    @TableField(value = "created_by")
    private String createdBy;
    
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    @TableField(value = "modified_on")
    // @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date modifiedOn;
    
    /**
     * 修改人
     */
    @ApiModelProperty("修改人")
    @TableField("modified_by")
    private String modifiedBy;

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Date getCreatedOn() {
        return createdOn;
    }

    public void setCreatedOn(Date createdOn) {
        this.createdOn = createdOn;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getModifiedOn() {
        return modifiedOn;
    }

    public void setModifiedOn(Date modifiedOn) {
        this.modifiedOn = modifiedOn;
    }

    public String getModifiedBy() {
        return modifiedBy;
    }

    public void setModifiedBy(String modifiedBy) {
        this.modifiedBy = modifiedBy;
    }
    
	@Override
    public String toString() {
        return "EnumType{" +
        "typeId=" + typeId +
        ", typeCode=" + typeCode +
        ", typeName=" + typeName +
        ", createdOn=" + createdOn +
        ", createdBy=" + createdBy +
        ", modifiedOn=" + modifiedOn +
        ", modifiedBy=" + modifiedBy +
        "}";
    }
}
